import {instance} from "@/api/request.js";

const url = "/content";


/**
 * 查询热度页
 */
export function getHeat() {
    return instance.get(url+"/video/4", {});
}
export function getVideos(current, size) {
    return instance.get(url+"/video/2/page", {
        params: {
            current: current,
            size: size
        }
    });
}
// 查询指定ID视频
export function getVideoById(id) {
    return instance.get(url+"/video/2/"+id);
}
// 查询推荐视频
export function getVideos2() {
    return instance.get(url+"/video/2");
}

// 查询视频记录
export function getVideoRecord(userId) {
    return instance.get(url+"/video/3/"+userId);
}

// 查询视频历史记录
export function getVideoHistory() {
    return instance.get(url+"/videohistory");
}

// 查询视频评论
export function getVideoReview(id) {
    return instance.get(url+"/videoreview/1/"+id);
}


export function getArticle() {
    return instance.get(url+"/article/2", {});
}
// 查询文章历史记录
export function getArticleHistory() {
    return instance.get(url+"/articlehistory",);
}
